﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace TB.BLL
{
    public class SessionData
    {
           public static MessageHandler MessageHandler
            {
                get
                {
                    var s = HttpContext.Current.Session["MessageHandler"] as MessageHandler;
                    if (s == null)
                    {
                        s = new MessageHandler();
                        HttpContext.Current.Session["MessageHandler"] = s;
                    }

                    return s;
                }
            }
        }
    }

